package com.ant.backstage.dao;

import com.ant.backstage.facade.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2021/12/23
*/
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByUid(@Param("record")User record);

    User selectbyName(@Param("uname") String uname);

    void updateJwtSecretByUid(@Param("uid")String uid, @Param("jwtSecret")String jwtSecret);

    User selectByUid(@Param("uid")String uid);

    List<String> selectbyCondition(@Param("user")User user);

    List<User> selectUserByuIds(@Param("uidList")List<String> uidList);

    void updatePwdByUid(@Param("uid") String uid, @Param("pwd") String pwd, @Param("salt")String salt);

    void updateStatusByUid(@Param("status")String status, @Param("uid")String uid);

}